<cfset str = "Hello ColdFusion----------------">
<br>
<cfoutput>#str#</cfoutput>


<br/>
<cfif isDefined("str")>
	<cfoutput>#str#</cfoutput>
    <img src="GX_wallpaper_1920x1080.jpg" alt="The picture is not found"/>
    <br>
    <cfoutput> -------------------is true</cfoutput>
    <br>
<cfelse>
    <img src="1.jpg" alt="The picture is not found"/>
	<cfoutput>--------------------is false</cfoutput>
    <br>
</cfif>

<!--- 定义一个数组 --->
<cfset arr = [1,2,3,4,5,6,7,8,9,10]>
<cfif isArray(arr)>
    <cfoutput>is array<br></cfoutput>
    <cfoutput>
        <!--- 循环输出数组中的元素 --->
        <cfloop array="#arr#" index="i">
            <cfoutput>#i#<br></cfoutput>
        </cfloop>
    </cfoutput>
<cfelse>
    <cfoutput>is not array<br></cfoutput>
</cfif>

<cfset arr2=['a','b','c']>
<cfif isArray(arr2)>
    <cfoutput>
        <cfoutput>is array<br></cfoutput>
        <cfloop array="#arr2#" index="j">
            <cfoutput>#j#<br></cfoutput>
        </cfloop>
    </cfoutput>
<cfelse>
    <cfoutput>is not array</cfoutput>
</cfif>